package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("team_member")
public class TeamMember extends Model<TeamMember> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long teamId;

    private Long memberId;

    private Long missionId;

    /**
     * 0成员1创建者
     */
    private Integer leader;


    public static final String ID = "id";

    public static final String TEAM_ID = "team_id";

    public static final String MEMBER_ID = "member_id";

    public static final String MISSION_ID = "mission_id";

    public static final String LEADER = "leader";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
